package com.liu.stockmarket.ui.stock.add

import com.liu.stockmarket.repository.database.entity.TransactionRecordEntity
import com.liu.stockmarket.ui.search.SearchResultAdapter
import java.math.BigDecimal
import java.time.LocalDate

data class Form(

    /**
     * 股票id，已经添加的股票才有
     */
    var stock: SearchResultAdapter.Item? = null,

    var transactionType: TransactionRecordEntity.TransactionType = TransactionRecordEntity.TransactionType.BUY,


    /**
     * 交易单价
     */
    var transactionPrice: BigDecimal? = null,

    /**
     * 交易数量
     */
    var transactionNumber: BigDecimal? = null,
    /**
     * 交易时间
     */
    var transactionDate: LocalDate? = null,


    var stockHandlingFee: BigDecimal? = null,
)
